﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Udisk u = new Udisk("金士顿");
            u.Read();
            u.Write();
            

            Console.WriteLine( "--------------------------");

            Mobiledisk m = new Mobiledisk("三星");
            m.Read();
            m.Write();
            

            Console.WriteLine("--------------------------");
            Computer c = new Computer("联想");
            c.Usb1 = u;
            c.Usb2 = m;
            c.Start();
            c.ReadData();
            c.WriteData();
            c.End();
        }
    }
}
